package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.SocialUserVo;
import com.atguigu.common.vo.UserLoginVo;
import com.atguigu.common.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegistVo vo);
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);
    /**
     * 微博社交登录
     */
    @PostMapping("/member/member/weibo/oauth2/login")
    R oauthLogin(@RequestBody SocialUserVo user);
}
